package com.heima.model.user.dtos;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@NoArgsConstructor
@Data
public class AdAuthDto {

    @JsonProperty("id")
    private Integer id;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("page")
    @Min(value = 1,message = "当前页小于0")
    @NotNull(message = "当前页为空")
    private Integer page;
    @JsonProperty("size")
    @Max(value = 10,message = "页大小大于10")
    @NotNull(message = "页大小大为空")
    private Integer size;
    @JsonProperty("status")
    private Integer status;
}
